package com.ruoyi.my.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 儿女信息对象 my_children_info
 * 
 * @author ruoyi
 * @date 2022-11-10
 */
public class MyChildrenInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 儿女姓名 */
    @Excel(name = "儿女姓名")
    private String name;

    /** 儿女年龄 */
    @Excel(name = "儿女年龄")
    private Integer age;

    /** 儿女性别 */
    @Excel(name = "儿女性别")
    private String sex;

    /** 老人ID */
    @Excel(name = "老人ID")
    private Long oldId;

    /** 老人姓名 */
    @Excel(name = "老人姓名")
    private String oldName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAge(Integer age) 
    {
        this.age = age;
    }

    public Integer getAge() 
    {
        return age;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setOldId(Long oldId) 
    {
        this.oldId = oldId;
    }

    public Long getOldId() 
    {
        return oldId;
    }
    public void setOldName(String oldName) 
    {
        this.oldName = oldName;
    }

    public String getOldName() 
    {
        return oldName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("age", getAge())
            .append("sex", getSex())
            .append("oldId", getOldId())
            .append("oldName", getOldName())
            .toString();
    }
}
